{extend name="Public/base" /}
{block name="title"}
	<title>搜索</title>
{/block}
{block name="daohanglan"}
	<li><a href="{:U('/')}">首页</a></li>
	{foreach $termList.nav as $t}
			
						<li><a {if $t.id==10 } class="on" {/if} href="{$t.url}">{$t.name}</a>
					<?php if($t['child'][0]!=''){ ?>		
							<div class="box">
							   <div class="box_a">
									<p>
									{foreach $t.child as $tc}
								
									<a href="{$tc.url}">{$tc.name}</a>
								
									{/foreach}
									</p>
							   </div>
							</div>
					<?php }; ?>		
						</li>	
				
	{/foreach}
{/block}
{block name="zcdh"}
<div class="banner"><img src="UPLOADS/{$site.lmdbimg}" /></div>
<div class="holder">
     <div class="left" style="padding-top:0;">
          <div id="firstpane" class="menu_list">
               {foreach :term('10')['child'] as $t}

							<h3 class="menu_head">{$t.name}</h3>
							<div style="display:none" class="menu_body">
								{foreach $t.child as  $tc}
								<a     href="{$tc.url}">{$tc.name}</a>
								{/foreach}
						    </div>
					
			   {/foreach}
	     </div>
<script type="text/javascript">
$(document).ready(function(){

	 $("#firstpane .current").next().show(); 
	$("#firstpane h3.menu_head").click(function(){
		$(this).addClass("current").next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
		$(this).siblings().removeClass("current");
	});
	
	$("#secondpane .menu_body:eq(0)").show();
	$("#secondpane h3.menu_head").mouseover(function(){
		$(this).addClass("current").next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
		$(this).siblings().removeClass("current");
	});
	
});
</script>
     </div>
     <div class="right">
          <div class="all_right">
               <h3><p><span>当前位置></span><span><a href="{:U('/')}">搜索></a></span></p></h3>
          </div>
{/block} 
{block name="body"}
          <div class="news">
               <ul class="news_list">
					{foreach $search.limit_10 as $c}
						
							<li >
								  <a href="{$c.url}">
									 <h3>{$c.name}(<?php echo date('d/m/Y',$c['create_time']);?>)</h3>
									 
								  </a>
						   </li>
						  
					{/foreach}
                   
               </ul>
               <div id="num">
                    <p>
					{Wh:page count="$search['limit_10']['pageCount']"}
						{if ($p.type == 'last')}
							<span class="span_fist"><a  href="{$p.url}"><</a></span>
						{elseif ($p.type == 'next')}
							<span class="span_last"><a  href="{$p.url}">></a></span>
						{else /}		
							<span{if ($p.in)} class="on" {/if}><a  href="{$p.url}">{$p.text}</a></span>
						{/if}	
					{/Wh:page}
                        
                    </p>
               </div>
          </div>
     </div>
   <div style="clear:both"></div>
</div>
{/block}
